<%@ page pageEncoding="UTF-8" %>
<%@ page import="org.springframework.web.context.WebApplicationContext" %>
<html>
<body>
<h2>Hello World!</h2>
<h3>
    <%=((WebApplicationContext) config.getServletContext().getAttribute("org.springframework.web.context.WebApplicationContext.ROOT")).getBean("pokemon")%>
</h3>
<%--spring使用默认的配置文件目录：WEB-INF/applicationContext.xml--%>
<h3>
<%--    <%=((WebApplicationContext) config.getServletContext().getAttribute("org.springframework.web.context.WebApplicationContext.ROOT")).getBean("pokemon1")%>--%>
</h3>
</body>
</html>
